FROM docker.1ms.run/library/ubuntu:24.10
RUN apt update && apt install g++ gcc make git curl python3 python3-pip -y
RUN pip3 install flask gunicorn --break-system-packages
RUN mkdir /engine
COPY ./ai-chess /ai-chess
#RUN chmod +x /ai-chess/engine/pikafish
WORKDIR /ai-chess
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "app:app"]